import { TimeLine } from "@/types/content/timeLine";
import  { post, remove } from "@/utils/request";


/**
 * 查询时间轴 分页
 * @returns
 */
export const queryTimeLineList = (data: TimeLine.Query) =>post<PageVo<TimeLine.Row>>(`/timeLine/list`,data);

/**
* 保存
* @returns
*/
export const saveTimeLine = (data: TimeLine.Form) =>post(`/timeLine/save`,data);
/**
* 删除
* @returns
*/
export const removeTimeLine = (id: string) => remove( `/timeLine/${id}`);